<%--
  Created by IntelliJ IDEA.
  User: 86177
  Date: 2021/11/22
  Time: 9:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <!--视口 自适应-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--bootstrap样式 -->
    <link rel="stylesheet" href="resource/css/bootstrap.css">
    <script src="resource/js/jquery-3.2.1.js"></script>
    <!--bootstrap.js 必须放在jquery.js下面 -->
    <script src="resource/js/bootstrap.js"></script>
    <title>Title</title>
</head>
<h1>欢迎${user.username}登录本系统</h1>
<div class="row">
    <div class="col-2">
        <div class="list-group" id="list-tab" role="tablist">
            <a class="list-group-item list-group-item-action active" id="list-home-list" onclick="queryAll('list')" data-toggle="list" href="#" role="tab" aria-controls="home">列表展示</a>
            <a class="list-group-item list-group-item-action" id="list-profile-list" onclick="queryAll('toadd')" data-toggle="list" href="#" role="tab" aria-controls="profile">添加订单</a>
        </div>
    </div>
    <div class="col-10">
        <div class="tab-content" id="nav-tabContent">
        </div>
    </div>
</div>
<body>
</body>
<script>
    $(function (){
        queryAll('list');
    })
    function queryAll(url){
        $("#nav-tabContent").load(url);
    }
</script>
</html>
